package com.demo;

public class Phone {

    //属性(成员变量)
    public String brand;
    public double price;

    //行为(方法)
    public void call(){
        System.out.println("用"+brand+"手机打电话");
    }
    public void playGame(){
        System.out.println("用"+brand+"手机玩游戏");
    }
}
